package com.xqboss.apps.vo.sys;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.sys.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 系统弹窗表
 */
@Data
@ApiModel
public class AppPopupVo {

    @ApiModelProperty("弹窗ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("弹窗标题")
    @NotEmpty(message = "请输入弹窗标题")
    private String title;

    @ApiModelProperty("弹窗图片")
    @NotEmpty(message = "请输入弹窗图片")
    private String img;

    @ApiModelProperty("弹窗位置")
    @NotNull(message = "请选择弹窗位置")
    private PopupPositionEnum position;

    @ApiModelProperty("弹窗类型")
    @NotNull(message = "请选择弹窗类型")
    private PopupTypeEnum type;

    @ApiModelProperty("富媒体内容")
    private String content;

    @ApiModelProperty("跳转类型")
    @NotNull(message = "请选择跳转类型")
    private PopupJumpEnum jumpType;

    @ApiModelProperty("跳转内容")
    private String jumpContent;

    @ApiModelProperty("弹窗次数")
    @NotNull(message = "请选择弹窗次数")
    private PopupShowTypeEnum showType;

}
